import request from "@/request/request";

/* 登录的接口 */
export const loginAPI = (data) => {
    return request({
        url: "/user/passport/login",
        method: "POST",
        data,
    })
}

/* 退出登录的接口 */
export const logoutAPI = () => {
  return request({
      url:"/user/passport/logout",
      method:"GET"
  })
}

/* 获取用户信息的接口 */
export const getUserInfoAPI = () => {
    return request({
        url:"/user/passport/auth/getUserInfo",
        method:"GET"
    })
}
